package com.ccsu.mymarket.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Set;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "roles",excludeProperty = "authorities")
public class Role {
    private Integer id;
    private String roleName;
    private String description;
    private Integer parentRole;
//    角色对应权限集合
    private List<String> authorities;
}
